function handles = avgTracesGenfunction
% avgTracesGen     Avg selected physiology traces
%
% Editing
% gs april 2005
% --------------------------------------------------

% get the data
handles = get(gcf, 'UserData');

% query user for trace numbers
tracesToAvg = inputdlg('Enter Matlab-format vector of traces to average (e.g. [1:3 5])');
tracesToAvg = str2num(tracesToAvg{1});

% average
avgTrace = mean(handles.data.map.mapActive.bsArray(:, tracesToAvg), 2);

% figure
hf = figure;

plot(avgTrace);

